package com.cyt.work.enrollment.model.po;

import com.cyt.base.util.BaseUtil;
import com.cyt.base.util.DictCode;
import com.cyt.sys.model.po.SysUser;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 自主招生-学生考试成绩实体类
 *
 * @author caideyong
 * @date 2019-11-22 16:38:52
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_enrollment_test")
public class EnrollmentTest implements Serializable {

	/**
     * 主键
     */ 
	@Id
	private String id;

	/**
     * 考试成绩
     */ 
	@Column(name = "NAME")
	private String name;

	/**
     * 语文
     */ 
	@Column(name = "CHINESE")
	private String chinese;

	/**
     * 数学
     */ 
	@Column(name = "MATH")
	private String math;

	/**
     * 英语
     */ 
	@Column(name = "ENGLISH")
	private String english;

	/**
     * 物理
     */ 
	@Column(name = "PHYSICAL")
	private String physical;

	/**
     * 化学
     */ 
	@Column(name = "CHEMISTRY")
	private String chemistry;

	/**
     * 政治
     */ 
	@Column(name = "POLITICIAL")
	private String politicial;

	/**
     * 历史
     */ 
	@Column(name = "HISTORY")
	private String history;

	/**
     * 总分
     */ 
	@Column(name = "TOTAL_SCORE")
	private String totalScore;

	/**
     * 班级排名
     */ 
	@Column(name = "CLASS_RANK")
	private String classRank;

	/**
     * 年级排名
     */ 
	@Column(name = "GRADE_RANK")
	private String gradeRank;

	/**
     * 学生信息id
     */ 
	@Column(name = "STUINFO_ID")
	private String stuinfoId;

	/**
     * 创建时间
     */ 
	@Column(name = "CREATE_TIME")
	private Date createTime;

	/**
     * 更新时间
     */ 
	@Column(name = "UPDATE_TIME")
	private Date updateTime;

	/**
     * 创建人
     */ 
	@Column(name = "CREATOR")
	private String creator;

	/**
     * 更新人
     */ 
	@Column(name = "UPDATOR")
	private String updator;

	/**
     * 删除标志
     */ 
	@Column(name = "REMOVE_TAG")
	private String removeTag;

	/**
	 * 创建对象
	 *
	 * @param sysUser 当前用户信息
	 * @author caideyong
	 * @date 2019-11-22 16:38:52
	 */
	public EnrollmentTest(SysUser sysUser) {
		this.id = BaseUtil.uId();
		this.removeTag = DictCode.BASE_REMOVE_TAG_NORMAL;
		this.createTime = new Date();
		this.creator = sysUser.getId();
		this.updateTime = new Date();
		this.updator = sysUser.getId();
	}
}